package org.base.common;

public enum ResponseCode {
	
	SUCCESS(0,"操作成功"),
	
	OPERATION_FAILURE(10101,"操作失败"),
	
	AUTHORIZED_EXCEPTION(10401,"授权失败"),
	
	UNAUTHORIZATION(10401, "未授权"),
	
	TOKEN_LOST(10401,"Token 不存在"),
	
	TOKEN_EXPIRED(10401,"Token 失效"),
	
	TOKEN_ILLEAL(10401,"Token 非法"),
	
	TOKEN_NOT_ALLOW_REFRESH(10401, "Token 不允许刷新"),
	
	USER_LOST(10401,"用户不存在"),
	
	USER_DISABLE(10401,"用户被禁用"),
	
	USER_PASSWORD_WRONG(10401,"账号密码错误"),
	
	CAPTCHA_WRONG(10401,"验证码错误"),
	
	SYSTERM_EXCEPTION(10500,"系统异常");
	
	private int code;
	
	private String msg;
	
	ResponseCode(int code, String msg){
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}

}
